<?php
session_start() ;
if(!isset($_SESSION["login"]) || $_SESSION["login"] == "")
{   
  header("Location: index.php?error=4") ;
}
include("lang.php");
?>

<html>
<head>
<title>Administration</title>
 <link rel="stylesheet" type="text/css" href="style.css" >  

</head>

<body>
<?php require("menu.php");
require("fonctions.php");
$code=$_GET["error"];
$action = $_GET["action"];
$id_user = $_SESSION["id_user"];
?>
<?php echo error_message($code);?>
<div class="texte_acc">
    <p class="titre_1"><u><?php echo TXT_INTRO_HISTO;?></u></p>
   <table class="tab_lis_op">
    
    <tr>
        <th class="tab_dis_head"><?php echo TXT_NUM_FICHE;?></th>
        <th class="tab_dis_head"><?php echo TXT_TYPE_FORM;?></th>
        <th class="tab_dis_head"><?php echo TXT_DATE_CREATION;?></th>
        <th class="tab_dis_head"><?php echo TXT_DETAILS;?></th>
    </tr>
<?php
    $sql="select * from asso_users_fiches where id_user in($id_user)";
    $res = @mysql_query($sql);
    while($r =@mysql_fetch_object($res)){
?>
<tr>
    <td class="tab_dis_data"><?php echo"$r->id_fiche";?></td>
    <td class="tab_dis_data"><?php echo getTypeProductionById($r->id_form);?></td>
     <td class="tab_dis_data"><?php echo $r->crea_date;?></td>
    <td class="tab_dis_data"><a href="form_<?php echo $type_prog;?>.php?id_fiche=<?php echo"$r->id_fiche"?>"><?php echo TXT_VOIR_DETAILS;?></a></td>
</tr>

   
<?php }?>
</table>

</div>

</body>

</html>
